package com.example;

import com.example.common.core.constants.Constants;
import com.example.common.core.domain.Result;
import com.example.domain.dto.JudgeSubmitDTO;
import com.example.domain.vo.UserQuestionResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//                                                         调取服务的名称
@FeignClient(contextId = "RemoteJudgeService", value = Constants.JUDGE_SERVICE)
public interface RemoteJudgeService {

    @PostMapping("/judge/doJudgeJavaCode")
    Result<UserQuestionResultVO> doJudgeJavaCode(@RequestBody JudgeSubmitDTO judgeSubmitDTO);


}